package com.agp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.scheduling.annotation.EnableScheduling;
import lombok.extern.slf4j.Slf4j;


/**
 * boot启动类
 *
 * @author agp
 */
//@EnableSwagger2Doc
@SpringBootApplication
@EnableScheduling
@EnableEurekaServer
@Slf4j
public class EurekaServiceApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(EurekaServiceApplication.class, args);
        log.info("spring-cloud-eureka-service启动!");
    }


}
